package net.borlis.server.properties;

import org.apache.commons.configuration.ConfigurationException;
import org.apache.commons.configuration.PropertiesConfiguration;

/**
 * Created by borlis on 26.12.2014.
 */
public class GeneralProperties {

    private String nodeName;
    private String systemUser;

    public GeneralProperties() {
        try {
            PropertiesConfiguration propertiesConfiguration = new PropertiesConfiguration("props/general.properties");
            this.nodeName = propertiesConfiguration.getString("node.name");
            this.systemUser = propertiesConfiguration.getString("node.system.user");
        } catch (ConfigurationException e) {
            e.printStackTrace();
        }
    }

    public String getNodeName() {
        return nodeName;
    }

    public String getSystemUser() {
        return systemUser;
    }
}
